package org.tc.product.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.product.entity.Joincommoditys;
import org.tc.product.util.PageHelper;

import java.util.List;

@RequestMapping("/JoincommoditysService")
public interface JoincommoditysService {

    //进货信息添加
    @RequestMapping("/insertJoin")
    int insertJoin(@RequestBody Joincommoditys record);

    //进货信息查询
    @RequestMapping("/selectAllJoin")
    PageHelper<Joincommoditys> selectAllJoin(@RequestParam("pageNo") int pageNo,
                                             @RequestParam("pageSize")int pageSize,
                                             @RequestParam("storeid") Integer storeid);
    @RequestMapping("/QueryMonthJoin")
    List<Joincommoditys> QueryMonthJoon(@RequestParam("starttime") String starttime,
                                        @RequestParam("jointime") String jointime,
                                        @RequestParam("storeid") Integer storeid);

    @RequestMapping("/QueryDayJoin")
    List<Joincommoditys> QueryDayJoin(@RequestParam("jointime") String jointime,
                                      @RequestParam("storeid") Integer storeid);

    @RequestMapping("/QueryCountJoin")
    int QueryCountJoin(@RequestParam("starttime") String starttime,
                                        @RequestParam("jointime") String jointime,
                                        @RequestParam("storeid") Integer storeid);

    @RequestMapping("/QueryDayCountJoin")
    int QueryDayCountJoin(@RequestParam("jointime") String jointime,
                          @RequestParam("storeid") Integer storeid);


}
